package com.liuyk.gif;

import android.support.rastermill.FrameSequenceDrawable;

import com.bumptech.glide.RequestBuilder;
import com.bumptech.glide.annotation.GlideExtension;
import com.bumptech.glide.annotation.GlideType;
import com.bumptech.glide.request.RequestOptions;

/**
 * DESC
 * <p>
 * Created by Administrator on 2019/12/2.
 */
@GlideExtension
public class GifExtension {
    //扩展glide的方法

    private GifExtension() {

    }

    @GlideType(FrameSequenceDrawable.class)
    public static RequestBuilder<FrameSequenceDrawable> asGif2(RequestBuilder<FrameSequenceDrawable> requestBuilder) {
        return requestBuilder.apply(RequestOptions.decodeTypeOf(FrameSequenceDrawable.class));
    }
}
